From: Lars Ingebrigtsen Date: Tue, 25 Jun 2019 23:15:06 +0000 (+0200) Subject: Fix previous patch to dired-mark-if X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~2608 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e8d174304a99baef2da456e973d955005455507e;p=emacs.git Fix previous patch to dired-mark-if * lisp/dired.el (dired-mark-if): Don't use looking-at to check for characters. --- diff --git a/lisp/dired.el b/lisp/dired.el index 5618b25f6f9..38ba3734a61 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -559,7 +559,7 @@ Return value is the number of files marked, or nil if none were marked." (goto-char (point-min)) (while (not (eobp)) (when ,predicate - (unless (looking-at-p (char-to-string dired-marker-char)) + (unless (= (following-char) dired-marker-char) (delete-char 1) (insert dired-marker-char) (setq count (1+ count))))